<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/12
  Time: 22:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/mybook.css">
</head>
<body>
<c:if test="${nobook == 1}">
    您还没有发布自己的作品哦！
</c:if>

    <table class="tablelist">
        <thead>
        <tr>
            <th>书名</th>
            <th>类型</th>
            <th width="120px">操作</th>
        </tr>
        </thead>
        <c:forEach items="${mybook}" var="mybook">
            <form action="uploadServlet" method="post" enctype="multipart/form-data">
            <tr>
                <td>
                    <a class="edit"
                       href="bookServlet?bookname=${mybook.bookname}&author_name=${mybook.author_name}">${mybook.bookname}</a>
                </td>
                <td>${mybook.types}</td>
                <td>
                        <%--                <a class="edit" href="uploadServlet?bookname=${mybook.bookname}&author_name=${mybook.author_name}">--%>
                        <%--                </a>--%>
                    <input type="text" name="bookname" value="${mybook.bookname}" hidden="hidden"/>
                    <input type="text" name="author_name" value="${mybook.author_name}" hidden="hidden"/>
                    <input type="file" class="myfile" name="myfile"/>
                    <input type="submit" class="upload" value="更新"/>
                </td>

            </tr>
</form>
        </c:forEach>
    </table>

<c:if test="${be == 1}">
    书籍审核中：
    <table class="tablelist">
        <thead>
        <tr>
            <th>书名</th>
            <th>类型</th>
            <th width="120px">状态</th>
        </tr>
        </thead>
        <c:forEach items="${book_examine}" var="book_examine">
                <tr>
                    <td>${book_examine.bookname}</td>
                    <td>${book_examine.types}</td>
                    <td>审核中</td>
                </tr>
        </c:forEach>
    </table>
</c:if>



</body>
</html>
